<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
request.setAttribute("path", basePath);  
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>订单</title>
		<!-- basic styles -->
		<link href="<%=path %>/manager/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="<%=path %>/manager/assets/css/font-awesome.min.css" />
		<link rel="stylesheet" href="<%=path %>/manager/assets/css/ace.min.css" />
		<link rel="stylesheet" href="<%=path %>/manager/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="<%=path %>/manager/assets/css/ace-skins.min.css" />

	</head>

	<body>



					<div class="page-content">
					
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->


								<div id="timeline-1">
									<div class="row">
										<div class="col-xs-12 col-sm-10 col-sm-offset-1">
											<div class="timeline-container">
												<div class="timeline-label">
													<span class="label label-primary arrowed-in-right label-lg">
														<b>订单</b>
													</span>
												</div>
<c:forEach   items="${requestScope.orders }" var="order">
												<div class="timeline-items">
													<div class="timeline-item clearfix">
													
													
														<div class="widget-box transparent">
															<div class="widget-header widget-header-small">
																<h5 class="smaller">
																	<a href="#" class="blue">订单号:${order.orderNumber }</a>
																	
																</h5>

																<span class="widget-toolbar no-border">
																	<span class="grey">创建时间${order.createTime }</span>
																     <a href="<%=path%>/order/deleteOrder.do?id=${order.id }" target="mainPer">
																				<i class="icon-remove red bigger-125"></i>
																     </a>
																</span>

																
															</div>
                     <c:forEach items="${order.subOrders}" var="sub">
															<div class="widget-body">
																<div class="widget-main">
																	<a href="<%=path %>/commodity/queryCommodityWeb.do?id=${sub.commodity.id}&detail=1" target="_bolck">${sub.commodity.name }</a>
																	<span class="red"></span>
                                                                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;单价${sub.commodity.price }
																	
																	<div class="space-6"></div>

																	<div class="widget-toolbox clearfix">
																		<div class="pull-left">
																			<img src="<%=path%>/Imgs/${sub.commodity.imgs[0].imgName}" width="50px" height="50px"/>
																			<a href="#" class="bigger-110">&nbsp;&nbsp;&nbsp;x ${sub.num } </a>
																		</div>

																		<div class="pull-right action-buttons">
																		   <a href="#">
																				实际价格：${sub.commodity.price*sub.commodity.discount*sub.num*1.0}
																			</a>
																			<!-- <a href="#">
																				<i class="icon-ok green bigger-130"></i>
																			</a>

																			<a href="#">
																				<i class="icon-pencil blue bigger-125"></i>
																			</a>

																			<a href="#">
																				<i class="icon-remove red bigger-125"></i>
																			</a> -->
																		</div>
																	</div>
																</div>
															</div>
															
															
															
					</c:forEach>										
															
														</div>
													</div>

													<div class="row">
														<div class="col-sm-5 pull-right">
															<h4 class="pull-right">
																总价 :
																<span class="red">$${order.allPrice }	</span>
															</h4>
														</div>
														
													</div>
													
													
												</div><!-- /.timeline-items -->
												
												
		</c:forEach>										
											
												
											</div><!-- /.timeline-container -->

											
										

							
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->

				
               </div>
		</div><!-- /.main-container -->


	

	

	</body>
</html>
